﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StudentManager.View
{
    public partial class Help : Form
    {
        public Help()
        {
            InitializeComponent();
        }

        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {

        }

        private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            switch (e.Node.Name)
            {
                case "ndangnhap":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\dangnhap.mht");
                    break;
                case "nhethong":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\hethong.mht");
                    break;
                //giao vien
                case "nthemgv":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\themgiaovien.mht");
                    break;
                case "nsuagv":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\suagiaovien.mht");
                    break;
                case "nxoagv":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\xoagiaovien.mht");
                    break;
                case "ntimkiemgv":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\timkiemgiaovien.mht");
                    break;
                case "nthoatgv":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\thoatgiaovien.mht");
                    break;
                //hoc sinh  
                case "nthemhs":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\themhocsinh.mht");
                    break;
                case "nsuahs":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\suahocsinh.mht");
                    break;
                case "nxoahs":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\xoahocsinh.mht");
                    break;
                case "ntimkiemhs":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\timkiemgiaovien.mht");
                    break;
                case "nthoaths":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\student-manager-1\Code\StudentManager\StudentManager\Help\thoathocsinh.mht");
                    break;
                default:
                    break;
            }
        }
    }
}
